#include "mainwindow.h"
#include "ui_mainwindow.h"
#include <QMessageBox>
#include "buttonhoverwathcer.h"

MainWindow::MainWindow(QWidget *parent)
    : QMainWindow(parent)
    , ui(new Ui::MainWindow)
{
    ui->setupUi(this);

    ButtonHoverWathcer * watcher = new ButtonHoverWathcer(this);
    ui->pushButton_3->installEventFilter(watcher);
    ui->pushButton_4->installEventFilter(watcher);
    ui->longTextButton->installEventFilter(watcher);
}

MainWindow::~MainWindow()
{
    delete ui;
}


void MainWindow::on_pushButton_3_clicked()
{
    ui->longTextButton->setText("Very very very very long text");
}

